package com.aliyun.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.aliyun.bean.QueryPara;
import com.aliyun.dao.UserDao;

@Transactional  
@Component("userService")
public class UserService {
	@Resource
	UserDao userDao;
	
	
	public int insertUser(Map<String,Object> map)throws SQLException{
		return userDao.insertUser(map);
	}
	public int insertYuMingList(List<Map<String,String>> list)throws SQLException{
		return userDao.insertYuMingList(list);
	}
	public int updateYuMingStatus(Map<String,String> map)throws SQLException{
		return userDao.updateYuMingStatus(map);
	}
	public List<Map<String, Object>> getUserItem(QueryPara qp) throws SQLException{
		return userDao.getUserItem(qp);  
	}
	public List<Map<String, Object>> getYuMingTime() throws SQLException{
		return userDao.getYuMingTime();  
	}
	public Map<String, Object> getUserOne(Map<String,String> map) throws SQLException{
		return userDao.getUserOne(map);  
	}
	public int deleteUser(Map<String,Object> map)throws SQLException{
		return userDao.deleteUser(map);
	}
}
